package com.qidian.mes.dv.mapper;

import com.qidian.mes.pojo.dv.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 迄氺(甄闯)
 * @Company 空白
 * @Time 2023/10/28 14:26
 * @Description
 */
public interface SubjectMapper {

    /**
     * 通过Id查询项目信息
     * @param subjectId
     * @return
     */
    Subject selectBySubjectId(Long subjectId);

    /**
     * 添加设备保养计划
     * @param subject
     * @return
     */
    int save(Subject subject);

    /**
     *
     * @param subjectName
     * @return
     */
    Subject selectBySubjectName(String subjectName);

    /**
     * 分页查询
     * @param subject
     * @param start
     * @param limit
     * @return
     */
    List<Subject> selectByPage(@Param("subject") Subject subject, @Param("start") Integer start, @Param("limit") Integer limit);

    /**
     * 查询总条数
     * @param subject
     * @return
     */
    Integer selectCount(Subject subject);

    /**
     * 通过id修改项目信息
     * @param subject
     * @return
     */
    Integer update(Subject subject);

    int deleteById(Long subjectId);




}
